//
//  TracePrototypeParser.h
//  airfight
//
//  Created by aaron more on 12-9-19.
//  Copyright (c) 2012年 moonriver. All rights reserved.
//

#ifndef airfight_TracePrototypeParser_h
#define airfight_TracePrototypeParser_h

#include "cocos2d.h"
#include "BaseXMLParser.h"
#include "TracePrototypes.h"


USING_NS_CC;



class TracePrototypeParser : public BaseXMLParser
{
private:
    std::string startXMLElement;
    std::string endXMLElement;
    std::string currentString;
    Trace *currentTrace;
    Move *currentMove;
    
public:
    TracePrototypes* prototypes;
    
public:
    TracePrototypeParser();
    virtual ~TracePrototypeParser();
    static TracePrototypeParser * formatWithXMLFile(const char *xmlFile);
    virtual void internalInit(const char* tmxFileName);
    
    virtual void startElement(void *ctx, const char *name, const char **atts);
    virtual void endElement(void *ctx, const char *name);
    virtual void textHandler(void *ctx, const char *s, int len);
    
};


#endif